#include<stdio.h>
#include<stdlib.h>
using namespace std;
#define maxvnodenum 100
#define maxSize 100
typedef struct Enode{
    int adjVex;//边所指向顶点编号
    struct Enode *next;
}Enode;
typedef struct Vnode{
    struct Enode *firstEdge;
    //入度
    char data;
}Vnode,AdjList[maxvnodenum];
typedef struct AdjGraph{
    AdjList vertices;
    int vexnums,edgenums;
}*graph;
void create_myGraph(graph mg){
    int i,j,k;
    printf("请输入顶点个数和边数:");
    scanf("%d%d",&mg->vexnums,&mg->edgenums);
    printf("请输入顶点信息:");
    for(int k=0;k<mg->vexnums;k++){
        getchar();
        scanf("%c",&mg->vertices[k].data);
        mg->vertices[k].firstEdge=NULL;
    }
    printf("输入vi,vj所对应的i,j:");
    for(int k=0;k<mg->edgenums;k++){
        scanf("%d%d",&i,&j);
        Enode *p=(Enode *)malloc(sizeof(struct Enode));
        p->adjVex=j;
        p->next=mg->vertices[i].firstEdge;
        mg->vertices[i].firstedge=p;//头插法
    }
}
void fun(){
    
}
int main(){
    fun();
    return 0;
}